home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / !READ ME-Snippets Upd. 11⁄96 < prev   
Encoding:
Text File  |  1996-09-20  |  2.6 KB  |  108 lines  |  [TEXT/ttxt]

  1. As the summer intern for Apple's Developer Technical Support, my responsibility was
  2. to update the sample code snippets so they would compile with current headers and
  3. libraries. 68K and PPC projects were built with Metrowerks CodeWarrior 9 because 
  4. it is more commonly used. The default values for these projects are as follows:
  5.  
  6. •  CodeWarrior project stationery was not used; each project was instead built 
  7. from scratch. In some instances, the snippet's resource file had to be created 
  8. from the existing .r file using MPW's rez.
  9.  
  10. •  Current libraries were added as needed or appropriate. For example, some 68K
  11. projects required either no libraries or only MacOSLib. All PPC projects required
  12. at least the Interface and MWCRuntime libraries.
  13.  
  14. •  Projects were compiled with all warnings on.
  15.  
  16. •  To help make the snippets more "forward-looking", a prefix file was added to 
  17. each project:
  18.  
  19.         #define SystemSevenOrLater        1
  20.         #define CGLUESUPPORTED            0
  21.         #define OLDROUTINENAMES            0
  22.         #define OLDROUTINELOCATIONS        0
  23.         
  24.     As a result of the prefix addition, most sample code required some kind of 
  25. change. The most common changes involved routine names; for example, AddResMenu
  26. became AppendResMenu and GetIText became GetDialogItemText.
  27.  
  28.  
  29. Other updates to the sample code included:
  30.  
  31. •  Changes to header files, e.g. SysEqu.h became LowMem.h.
  32.  
  33. •  Some sample code compiled in MPW included the extern _DataInit, which produced
  34. a link error in CodeWarrior. This problem was solved by adding a conditional 
  35. statement to the code so the extern would be ignored by CodeWarrior.
  36.  
  37. •  A Size flag was toggled on in the Preferences for sample code which was 
  38. High Level Event Aware.    
  39.  
  40.  
  41. The following snippets received the above maintanence:
  42.     AddResMenu7.1
  43.     Band Copying the Sequel
  44.     BufCallback
  45.     CalcCMask & CalcMask
  46.     ColorPicker
  47.     ColorizePict
  48.     CopyBits vs. CopyMask
  49.     CopybitsSpeedPalette
  50.     CopyDeepMask
  51.     CopyMask
  52.     CustomGet unresolved alias
  53.     CustomIcon
  54.     Dialog popups
  55.     DialogBits
  56.     DirectPixelAccess
  57.     DoubleBuffer
  58.     DragWindowGrid
  59.     DTSGroupies
  60.     FindSerialPorts
  61.     GetDragHiliteColor
  62.     GetFInfo
  63.     GetToolConfig
  64.     GetVInfo
  65.     GridWindowGrow
  66.     HideMenuBar
  67.     ic18 To cicn
  68.     icon cache demo
  69.     IconPlay
  70.     IconUtilCheck
  71.     kcapApp
  72.     ListInDialog
  73.     Menu 'cicn' Fun
  74.     MeterTest
  75.     Modeless Dialog Sample
  76.     MultiPlay
  77.     MyDeviceLoop
  78.     NoResDialog
  79.     Out of This GWorld
  80.     Password
  81.     PopUpMenuSelectWithCurFont
  82.     PowerMacOr68K
  83.     Prefs
  84.     Process
  85.     ProgressBars 1.0
  86.     Record•ReceivePictInfo
  87.     ReKeyTrans
  88.     RequiredFinderColors
  89.     Rotate Bitmap 90˚
  90.     RubberBandit
  91.     SampleRateAvail
  92.     SeedCFill Example
  93.     SettingUpStdFile
  94.     SquareWave
  95.     stdFilterHacking
  96.     Test Gestalt
  97.     VBLSnippet
  98.     Vertest
  99.     WaveTable Sounds
  100.     WindowColors
  101.     ZoomRecter
  102.     
  103.     
  104.     
  105.     
  106. Liesl Niemeier
  107. Developer Technical Support    
  108.